require "running_parameters"


Dir.chdir( "T:/Files/uci_binary_datasets" )


#ims = [ "simple", "complex_22", "complex_1234" ]
ims = [ "simple" ]

#entries = Dir.glob( "*.arff" )
#entries = [ "breast-cancer.arff", "credit-g.arff", "diabetes.arff", "heart-statlog.arff", "sonar.arff" ]
#entries = [ "breast-w.arff", "credit-a.arff", "ionosphere.arff", "kr-vs-kp.arff", "mushroom.arff", "sick.arff", "vote.arff" ]
#entries = [ "hepatitis.arff", "labor.arff" ]
entries = [ "credit-a.arff" ]

#pool_sizes = [ 4, 8, 16, 32 ]
pool_sizes = [ 32 ]

prs_initial_seeds = [ 60, 70, 80, 90, 100 ]
#prs_initial_seeds = [ 1 ]

ims.each { | im |
  entries.each { | entry |
    pool_sizes.each { | pool_size |
      prs_initial_seeds.each { | prs_initial_seed |
        RunningParameters.set_random_seed( 1 ) # p1
        RunningParameters.set_pool_size( pool_size ) # p2 ###
        case pool_size
        when 4
          RunningParameters.set_num_of_ensemble_classifier_members( 2 ) # p3 ###
        when 8
          RunningParameters.set_num_of_ensemble_classifier_members( 2 ) # p3 ###
        when 16
          RunningParameters.set_num_of_ensemble_classifier_members( 3 ) # p3 ###
        when 32
          RunningParameters.set_num_of_ensemble_classifier_members( 5 ) # p3 ###
        end
        RunningParameters.set_metric( "pctCorrect()" ) # p4
        RunningParameters.set_data_set( entry ) # p5 ###
        RunningParameters.set_current_fold( 1 ) # p6
        RunningParameters.set_im( im ) # p8
        RunningParameters.set_time_limit( 100 ) # p9
        RunningParameters.set_prs_initial_seed( prs_initial_seed ) # p10

        load( "main.rb" )
      }
    }
  }
}
